import request from '@/utils/request'

// 查询应收款明细列表
export function listReceivable(query) {
  return request({
    url: '/receivable/receivable/list',
    method: 'get',
    params: query
  })
}

// 查询应收款明细详细
export function getReceivable(outboundNo) {
  return request({
    url: '/receivable/receivable/' + outboundNo,
    method: 'get'
  })
}

// 新增应收款明细
export function addReceivable(data) {
  return request({
    url: '/receivable/receivable',
    method: 'post',
    data: data
  })
}

// 修改应收款明细
export function updateReceivable(data) {
  return request({
    url: '/receivable/receivable',
    method: 'put',
    data: data
  })
}

// 删除应收款明细
export function delReceivable(outboundNo) {
  return request({
    url: '/receivable/receivable/' + outboundNo,
    method: 'delete'
  })
}
